<!DOCTYPE html>
<html>
<head>
    <script type='text/javascript' src="./cordova.js"></script>
    <script type='text/javascript' src="./cordova_plugins.js"></script>
</head>

<body>

    <button id="start_push">start_push_service</button>
    <br/>
    <button id="stop_push">stop_push_service</button>

    <script type='text/javascript'>
    //开启推送服务
     document.getElementById('start_push').onclick= function () {
        'use strict'
        cordova.exec(function(){ console.log('succ');},
		function(){console.log('fail')},
		"PushPlugin",
		"start_push_service","empty args");
      }

    //关闭推送服务
     document.getElementById('stop_push').onclick= function() {
        'use strict'
        cordova.exec(function(){ console.log('succ');},
		function(){console.log('fail')},
		"PushPlugin",
		"stop_push_service","empty args");
     }
    </script>
</body>
</html>